#pragma once
#include "afxwin.h"


// CCheckOutDlg dialog

class CCheckOutDlg : public CDialog
{
	DECLARE_DYNAMIC(CCheckOutDlg)

public:
	CCheckOutDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CCheckOutDlg();

// Dialog Data
	enum { IDD = IDD_CHECKOUT };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedAdddiscount();
	void initialFoodType(vector<CString>& foodType){m_vFoodType = foodType;};
	void initialDiscount(vector<CString>& discout){m_Discount = discout;}
	void initialSpecialReason(vector<CString>& specialReason){m_SpecialReason = specialReason;};
	bool getIsChargeSever() const
	{
		return m_isSeverCharge;
	};
	bool getIsVIPDiscount() const
	{
		return m_isVIPdis; 
	}
	int	 getChargeValue(){ 
		return m_chargeValue;
	};
	int  getVIPDiscountValue(){
		return m_VIPdisValue;
	}
public:
	CListBox m_DiscountList;

	vector<CString> m_Discount;
	vector<CString> m_SpecialReason;
	vector<CString> m_vFoodType;
	bool			m_isSeverCharge;
	int				m_nType;
	int				m_chargeValue;
	bool			m_isVIPdis;
	int				m_VIPdisValue;
public:
	virtual BOOL OnInitDialog();
public:
	afx_msg void OnBnClickedDeldiscount();
public:
	afx_msg void OnBnClickedEditdiscount();
public:
	afx_msg void OnBnClickedAddreason();
public:
	afx_msg void OnBnClickedDelreason();
public:
	afx_msg void OnBnClickedEditreason();
public:
	CListBox m_SpecReasonList;
public:
	CButton m_severCheck;
public:
	afx_msg void OnBnClickedCheck1();
public:
	CButton m_isVIPdiscount;
public:
	CEdit m_persentValue;
public:
	CEdit m_quatoEdit;
public:
	afx_msg void OnBnClickedCheck2();
public:
	CEdit m_discountPerEdit;
public:
	afx_msg void OnBnClickedOk();
};
